///<reference path="../BaseLifecycleObj.ts"/>
///<reference path="../BaseContextObj.ts"/>
/**
 * Created by PengWei on 2018/7/25.
 */
namespace mengdao {
    import BaseContextObj = game.BaseContextObj;

    export class BaseCommand extends BaseContextObj implements ICommand, IDispose, IClear {
        protected _eventType:string;
        public fromContextExecute(context,type:string, data: any): void {
            this.context = context;
            this._eventType = type;
            this.active();
            this.execute(data);
        }

        public execute(data?: any): void {

        }

        public dispose(): void {
            super.dispose();
        }

        public clear(): void {

        }
    }
}